<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

//
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'frontend.main.class.php');
$feObj = new FrontendMainBase();

//
if( $request_type == 'error' ) {
	if( in_array($request_link_class, array('nopage', 'noexist')) ) {
		$mainpart = $request_link_class;	
	} else {
		$mainpart = 'error';
	}
}

//
$CONFIG['cache']['current'] = 0;

//
$feObj->content_wrap['mainpart'] = $mainpart;
echo $feObj->display('pagelayout/pagelayout_main_control.tpl');
//
?>